cmake_minimum_required(VERSION 3.10)

file(GLOB SOURCES src/uffs/*.c)

#if(CONFIG_NAND_W25N01GVZEIG)
    list(APPEND SOURCES "driver/spi_w25n01gvzeig.c")
#else()
#    message(WARNING "nand flash driver not defined.")
#endif

list(APPEND SOURCES src/esp_uffs.c src/uffs_api.c)



idf_component_register(
        SRCS ${SOURCES}
        INCLUDE_DIRS "." "include" "driver" "src" "src/uffs" 
        REQUIRES esp_uffs)
#REQUIRES spi_master

